<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateCosmeticMaterialsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('cosmetic_materials', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('customer_id')->default(0)->comment('关联 customers 表的 id');
			$table->integer('store_id')->default(0)->comment('关联stores表的id');
			$table->string('name')->default('')->comment('化妆品材质的名称');
			$table->integer('sort')->default(10000)->comment('排序，0-10000，越小越靠前');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('cosmetic_materials');
	}

}
